package com.cskaoyan.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/5
 * @TIME: 21:06
 * @PROJECT_NAME: mallproject2
 */
@NoArgsConstructor
@Data
public class LabelListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<LabelVO> list;

    public static LabelListBean data(long total, Integer pages, Integer limit, Integer page, List list) {
        LabelListBean labelData = new LabelListBean();
        labelData.setTotal((int) total);
        labelData.setPages(pages);
        labelData.setPage(page);
        labelData.setLimit(limit);
        labelData.setList(list);
        return labelData;
    }
}
